import configparser

config = configparser.ConfigParser()
config.read('db.ini')
db_user = config.get('db', 'user')
db_passwd = config.get('db', 'passwd')
db_server = config.get('db', 'server')
db_name = config.get('db', 'name')

SQLALCHEMY_DATABASE_URI = f"mysql+pymysql://{db_user}:{db_passwd}@{db_server}/{db_name}"
SQLALCHEMY_TRACK_MODIFICATIONS = False
